#!/bin/sh
# 判断命令是否存在
command_exists () {
  command -v "$1" >/dev/null 2>&1
}

# Workaround for Windows 10, Git Bash and Yarn
# 判断是否是Windows 10，Git Bash和Yarn
if command_exists winpty && test -t 1; then
  exec < /dev/tty
fi